﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using XCommunity.Web;

public partial class Controls_OnlineAccounts : System.Web.UI.UserControl
{
  protected void Page_Load( object sender, EventArgs e )
  {
    AccountList.DataSource = WebCommunityContext.Current.AccountService.LoggedAccounts;
    DataBind();
  }


  protected string ShowUsername()
  {
    var username = (string) Page.GetDataItem();
    if ( username.StartsWith( "_" ) )
      return "游客";
    else
      return username;

  }

}
